//
//  ViewController.m
//  jingduoduoDemo
//
//  Created by caobo56 on 16/4/8.
//  Copyright © 2016年 caobo56. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property(nonatomic,retain)HomeVcWithEntity * homevcwithentity;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    // Do any additional setup after loading the view, typically from a nib.
    __weak ViewController *vc = self;;
    [NetworkManager HttpRequestAndController:self AndrequestAddress:API_Host Andparams:nil AndHUDtext:@"正在加载" CompletionHandler:^(NSDictionary *completedOperation) {
        NSLog(@"%@",completedOperation);
        vc.homevcwithentity=[HomeVcWithEntity mj_objectWithKeyValues:completedOperation];
        
        
        
    } errorHandler:^(NSString *StringError) {
        NSLog(@"%@",StringError);
        
    }];
    
        
     
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
